<template>
    <view class="container-rule">
        <view style="color:#fff;text-align:center;margin:30rpx 0 20rpx 0;font-size:40rpx;">等级说明</view>
        <view style="background:#fff;border-radius:20rpx;padding:20rpx;width:92%;margin:0 auto;padding:30rpx;">
            <view v-for="(item,index) in vipLi" :key="index" class="container-list">
                <view class="lable_name">{{ item.name }}</view>
                <view class="lable_desc">{{ item.desc }}</view>   
            </view>
            <view class="lable_desc_rule">*会员等级根据会员评级前365天内消费金额总和判定</view>   
        </view>
         <view style="color:#fff;text-align:center;margin:30rpx 0 20rpx 0;font-size:40rpx;">会员等级升级规则</view>
        <view style="background:#fff;border-radius:20rpx;padding:20rpx;width:92%;margin:0 auto;padding:30rpx;">
            <view class="container-list" style="border:none">
                <view class="lable_desc">会员在评级后满足累计消费条件自动晋升更高级别会员，尊享会员权益</view>   
            </view>
            <view class="lable_desc_rule" style="line-height:40rpx;">*会员累计金额为确认收货后交易成功的实付订单金额</view>   
            <view class="lable_desc_rule" style="line-height:40rpx;">*累计金颜促限一个会员账户，不同账户不可累计，不可转移</view>   
            <view class="lable_desc_rule" style="line-height:40rpx;">*如遇大促活动期间或者会员系统升级，等级更新可能延迟，敬请耐心等</view>   
        </view>
        <view style="color:#fff;text-align:center;margin:30rpx 0 20rpx 0;font-size:40rpx;">权益领取</view>
        <view style="background:#fff;border-radius:20rpx;padding:20rpx;width:92%;margin:0 auto;padding:30rpx;">
            <view class="container-list" style="border:none">
                <view class="lable_desc">会员权益请联系专属客服进行咨询、领取</view>   
            </view>
        </view>     
        <view style="color:#fff;text-align:center;margin:30rpx 0 20rpx 0;font-size:40rpx;">隐私协议</view>
        <view style="background:#fff;border-radius:20rpx;padding:20rpx;width:92%;margin:0 auto 30rpx auto;padding:30rpx;border:none;">
            <view class="container-list" style="border:none">
                <view class="lable_desc">1.本政策适用于【六只花狗宠物产业发展(广州)有限公司】为其品牌会员所提供的服务</view> 
                <view class="lable_desc" style="margin-top:30rpx;">
                    2、商家/品牌承诺对用户的个人信息严格保密，但经用户授权或给予法律及程序要求的除外。您知悉并同意，商家/品牌将通过短信、企业微信、电话等渠道向您发送活动及产品最新消息
                </view>     
            </view>
        </view>
        <view style="height:40rpx;"></view>

    </view>
</template>

<script>
export default {
  data() {
    return {
      vipLi: []
    };
  },
  onLoad() {
    this.loadViplist()
  },
  onShow() {
    
  },
  methods: {
    // 获取会员升级相关
			async loadViplist() {
				this.$api.get({
					url: '/wanlshop/common/init',
					data: {
						version: "1.1.1"
					},
					success: res => {

						this.vipLi = res.modulesData.levelData;
						this.advantage = res.modulesData.advantage
						console.log(this.vipLi)
					}
				})
			},
  }
};
</script>

<style>
    page {
        background: #FD7601;
    }
    .lable_name,.lable_desc {
        font-size: 36rpx;
        line-height: 60rpx;
    }
    .container-list {
        padding: 16rpx 0;
        border-bottom: 1px solid gainsboro;
    }
    .lable_name {
        color: #FD7601;
    }

    .lable_desc_rule {
        height: 80rpx;
        line-height: 80rpx;
        font-size: 26rpx;
        color: gray;
    }
</style>